package entities;


import java.io.Console;
import java.util.ArrayList;
import java.util.List;

import org.junit.Assert;
import org.junit.Test;

import custom_types.Address;
import custom_types.Afm;
import custom_types.Date;
import custom_types.EmailAddress;
import custom_types.Property;
import custom_types.Rating;
import custom_types.ZipCode;

public class AdvertisementTest {

	@Test
    public void constructorTest(){
		
		Address address = new Address();
//		Property property = new Property(0,address,5,2000,3,100);
		Date dateAdded = new Date(01,12,2013);
		Date lastModified = new Date(01,12,2013);
		Boolean isAvailable = true;
		
//		Advertisement adv = new Advertisement(0,property,dateAdded,lastModified,isAvailable);
//		Assert.assertEquals(0, adv.getId());
//		Assert.assertEquals(true, adv.getIsAvailable());
//		Assert.assertEquals(dateAdded, adv.getDateAdded());
//		Assert.assertEquals(lastModified, adv.getLastModified() );
//		Assert.assertEquals(property, adv.getProperty());
		
		
		
	}
	
	@Test void setTest(){
		
		
		Advertisement adv = new Advertisement();
		Property property = new Property();
		property.setAreaSize(120);
		property.setConstructionYear(2010);
//		property.setId(0);
		Address address = new Address();
		address.setCity("Athens");
		address.setRegion("Patisia");
		address.setStreetName("Pathsiwn");
		address.setStreetNumber(120);
		ZipCode zip = new ZipCode();
		zip.setZipCode(15232);
		address.setZipCode(zip);
		Date dateAdded = new Date();
		dateAdded.setDay(7);
		dateAdded.setMonth(12);
		dateAdded.setYear(2013);
		//adv.
		
		
		
		
	}
	
	
}
